package com.ruoyi.system.domain.base;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;
import java.util.Map;

/**
 * 查询基类
 */
@Data
@EqualsAndHashCode(callSuper=false)
public class BaseQueryModel implements Serializable {
    @ApiModelProperty(value = "主键")
    private Long id;
    @ApiModelProperty(value = "是否分页")
    private Boolean ifPage = true;
    @ApiModelProperty(value = "当前页")
    private Integer pageNum = 1;
    @ApiModelProperty(value = "页大小")
    private Integer pageSize = 50;
    @ApiModelProperty(value = "排序字段(默认排序字段)(update_time 修改时间，sort 排序字段)")
    private String orderColumn = "sort";
    @ApiModelProperty(value = "排序类型ASC正序DESC倒序(默认倒序)")
    private String orderType = "DESC";
    @ApiModelProperty(value = "请求参数")
    private Map<String, Object> params;
}
